#define _CRT_SECURE_NO_WARNINGS 1



#include<iostream>
#include<map>
using namespace std;
const int N = 10000;
string s[N];
map<string, int>mp;
int main()
{
    int n;
    cin >> n;
    for (int i = 1;i <= n;i++)
    {
        cin >> s[i];
        mp[s[i]] = 0;
    }
    int t;
    cin >> t;
    int sum = 0;
    for (int i = 1;i <= t;i++)
    {
        string ss;
        int x;
        cin >> ss >> x;
        mp[ss] = x;
        sum += x;
    }
    for (int i = 1;i <= n;i++)
        mp.erase(s[i]);
    int flag = 1;
    for (auto it = mp.begin();it != mp.end();it++)
    {
        if (it->second * t > sum)
        {
            flag = 0;
            cout << it->first << "\n";
        }
    }
    if (flag)
        cout << "Bing Mei You" << "\n";
    return 0;
}